#include "swf.h"
#include "RGBA.h"
using namespace swfstream;
RGBA* RGBA::from_file(FILE* f) {
	//puts("reading RGBA");
	struct RGBA *r = new RGBA;
	r->r = getc(f);
	r->g = getc(f);
	r->b = getc(f);
	r->a = getc(f);
	return r;
}
void RGBA::print() {
	printf("RGBA(0x%X,0x%X,0x%X,0x%X)\n", (uint) r, (uint) g, (uint) b,
			(uint) a);
}

